package com.yt.base.dao.impl;

import java.util.List;

import com.yt.base.dao.AclGroupOperationDao;
import com.yt.base.model.AclGroupOperation;
import com.yt.core.dao.GenericDaoImpl;

public class AclGroupOperationDaoImpl extends GenericDaoImpl<AclGroupOperation, Long> implements
		AclGroupOperationDao {
	
	public AclGroupOperationDaoImpl() {
		setNameSpace("com.dayima.nose.model.acl_group_operation");
	}

	@Override
	public List<AclGroupOperation> findByGroup(Long groupId) {
		return getSqlSession().selectList(getNameSpace() + ".findByGroup", groupId);
	}
	
	@Override
	public int batchDelete(List<Long> idList) {
		return getSqlSession().delete(getNameSpace() + ".batchDelete", idList);
	}
	
	@Override
	public int batchInsert(List<AclGroupOperation> opList) {
		return getSqlSession().insert(getNameSpace() + ".batchInsert", opList);
	}
}
